From 3a095ad4547c98706bd1acece32a39925251f3a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Fri, 29 Apr 2016 15:54:52 +0000 Subject: [PATCH] W32: support cairo library in non-standard locations When checking for cairo_win32_surface_create_with_format in -lcairo, temporarily put CAIRO_LIBS into LIBS so that AC_CHECK_LIB() can find it in weird places like /usr/local/lib, where gcc would not look on its own. https://bugzilla.gnome.org/show_bug.cgi?id=765793 --- configure.ac | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index e1f743de44..3718dbf898 100644 --- a/configure.ac +++ b/configure.ac @@ -581,18 +581,21 @@ PKG_CHECK_MODULES(BASE_DEPENDENCIES, PKG_CHECK_MODULES(CAIRO_BACKEND, [$cairo_backends]) # Remove this check once cairo_required_version reaches at least 1.16.0 -case $host_os in - mingw*) +AS_CASE([$host_os], + [mingw*], + [ PKG_CHECK_MODULES(CAIRO, [cairo >= cairo_required_version]) + gtk_save_LIBS="$LIBS" + LIBS="$CAIRO_LIBS $LIBS" AC_CHECK_LIB([cairo], [cairo_win32_surface_create_with_format], [AC_MSG_RESULT([found])], [AC_MSG_ERROR( [cairo_win32_surface_create_with_format is not found in cairo library You need a cairo snapshot 1.15.x or 1.16.x release or newer])]) - ;; - *) - ;; -esac + LIBS="$gtk_save_LIBS" + ], + [] +) PKG_CHECK_MODULES(GMODULE, [gmodule-2.0]) -- 2.30.2